package org.display.graphic
{
	import flash.display.Sprite;
	import flash.events.*;
	import flash.utils.Timer;

	public class Square extends Sprite
	{
		private var isvisible:Boolean=false
			
		public function Square()
		{
			graphics.clear()
			graphics.lineStyle(1,0x000000,1)
			graphics.beginFill(0x666666,1)
			graphics.drawEllipse(0,0,5,5)
			graphics.endFill()

			var timer:Timer=new Timer(500)
			timer.addEventListener(TimerEvent.TIMER,timerEvent)
			timer.start()
					
		}
		
		function timerEvent(e:TimerEvent){
		
		
		    if(isvisible){
				
				isvisible=false
				this.visible=false
			
			}else{
				
				isvisible=true
				this.visible=true
			}
		
		
		}
	}
}